<?php

/**
 * Created by PhpStorm.
 * User: Yieong
 * Date: 2017/6/5
 * Time: 下午8:19
 */
class LogRoleService extends Service
{

    public static function getDictByUser($roleIds){
        $model = new ModLog();
        $tmp = $model->getRole($roleIds);
        $dict = array();
        foreach($tmp as $v){
            $dict[$v['roleid']] = array(
                'server'    => $v['server'],
                'name'      => $v['rolename'],
            );
        }
        return $dict;
    }

}